

const store = require('./store/index.js');


console.log(store.getState());

// 修改store
// 1.创建一个action  描述发生什么的对象
const nameAction ={type:'change_name',name:'jack'}
// 2. store 执行 dispatch 方法  3. reducer 接收action ,
store.dispatch(nameAction)

console.log(store.getState());